package com.thiswhyme.common.response;

import com.thiswhyme.common.expection.BusinessExceptionAssert;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 响应常量，此处仅用于示例，具体跟随具体业务体系的错误码
 * @author thiswhyme
 * @date 2019/12/11
 */
@Getter
@AllArgsConstructor
public enum ResponseCode implements BusinessExceptionAssert {

    SUCCESS("00000", "成功"),
    SYSTEM_EXCEPTION("00001", "系统服务异常"),
    OPERATION_FAILURE("00002", "操作失败"),
    INVALID_ARGUMENT("00003", "参数不合法"),
    SQL_EXCEPTION("00004", "SQL异常"),
    SERVLET_EXCEPTION("00005", "SERVLET异常"),
    RPC_CALL_ERROR("00006", "RPC接口调用失败"),;

    private String code;

    private String msg;
}
